import com.ssqdx.pojo.Person;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author asus
 * @date 2021/6/7 14:43:48
 * @description
 */
public class Mytest1 {
    public static void main(String[] args) {

        ApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");
        Person person =context.getBean("person",Person.class);

        person.getCat().jiao();
        person.getDog().jiao();
    }
}
